package com.taoyibao.hongcanting.model;

import android.annotation.SuppressLint;
import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;

/**
 * @author TangAnna
 * @description:
 * @date :${DATA} 16:08
 */
@SuppressLint("ParcelCreator")
public class GiftMode implements Parcelable {


    /**
     * code : 200
     * msg : 成功
     * data : [{"info":[{"id":2,"gift_name":"飞天火箭","gift_type":1,"img_url":"admin.taoyibao.com\\uploads\\20190104\\3b1ee0fab641c91f484739868561c724.jpg","price":199,"status":1,"create_at":1546590015,"update_at":1546590625,"sort":44},{"id":6,"gift_name":"经典飞机","gift_type":1,"img_url":"admin.taoyibao.com\\uploads\\20190104\\4fc9041a3b4be3c30432fd64d209dd17.jpg","price":125,"status":1,"create_at":1546592626,"update_at":1546592626,"sort":56},{"id":7,"gift_name":"跑车","gift_type":1,"img_url":"admin.taoyibao.com\\uploads\\20190109\\9588dd6b73a336bf199ad6170747a391.jpg","price":150,"status":1,"create_at":1547032646,"update_at":1547032646,"sort":11}],"name":"礼物"},{"info":[{"id":3,"gift_name":"1","gift_type":3,"img_url":"admin.taoyibao.com","price":100,"status":1,"create_at":1546590688,"update_at":1546590688,"sort":33}],"name":"大屏"},{"info":[{"id":4,"gift_name":"哈啤","gift_type":2,"img_url":"admin.taoyibao.com\\uploads\\20190104\\7cd54f600ec6a1727f57e15a3d3e40d8.jpg","price":188,"status":1,"create_at":1546590804,"update_at":1546590804,"sort":14}],"name":"酒水"},{"info":[{"id":5,"gift_name":"99玫瑰","gift_type":4,"img_url":"admin.taoyibao.com\\uploads\\20190104\\cc2b66a398997e72dd28e304c875757f.jpg","price":281,"status":1,"create_at":1546590853,"update_at":1546592221,"sort":44}],"name":"其他"}]
     */
//    @Override
//    public int describeContents() {
//        return 0;
//    }
//
//    @Override
//    public void writeToParcel(Parcel dest, int flags) {
//
//    }

    /**
     * info : [{"id":2,"gift_name":"飞天火箭","gift_type":1,"img_url":"admin.taoyibao.com\\uploads\\20190104\\3b1ee0fab641c91f484739868561c724.jpg","price":199,"status":1,"create_at":1546590015,"update_at":1546590625,"sort":44},{"id":6,"gift_name":"经典飞机","gift_type":1,"img_url":"admin.taoyibao.com\\uploads\\20190104\\4fc9041a3b4be3c30432fd64d209dd17.jpg","price":125,"status":1,"create_at":1546592626,"update_at":1546592626,"sort":56},{"id":7,"gift_name":"跑车","gift_type":1,"img_url":"admin.taoyibao.com\\uploads\\20190109\\9588dd6b73a336bf199ad6170747a391.jpg","price":150,"status":1,"create_at":1547032646,"update_at":1547032646,"sort":11}]
     * name : 礼物
     */

    public String name;
    public ArrayList<GiftInfoModel> info;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {

    }
}
